/**
 * Created by Administrator on 2018/9/21.
 */
var config={
    enterprise:{//公司
        name:'杭州佰盛网络科技有限公司',
        phone:'',
        QQ:'749066341',
        weChat:''
    },
    product:{
        name:'好股盛',
    },
    banner:[
        {
            img:'/images/banner/banner05.png',
            url:'/view/register.html'
        },{
            img:'/images/banner/banner03.png',
            url:'javascript:void(0)'
        },{
            img:'/images/banner/banner.png',
            url:'javascript:void(0)'
        }
    ]
};
var banenr='';
for(var i=0;i<config.banner.length;i++){
    banenr+=' <a href="'+config.banner[i].url+'" class="swiper-slide" style="height: 100%">' +
        '<img src="'+config.banner[i].img+'" style="height: 109%;width: 103%; '+(i==0?'margin-left: -0.05rem;margin-top: -0.04rem;':'')+'">' +
        '</a>'
}
$('#bannerHtml').html(banenr);
(function () {
    //检测DNS劫持
    document.title = config.product.name;
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?9b221f49448db09232a5264339698564";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
    $('.productName').text(config.product.name);
    $('.enterpriseName').text(config.enterprise.name);
    $('.qq').text(config.enterprise.QQ)
    $('.btnQQ').on('click',function () {
        window.location.href='mqqwpa://im/chat?chat_type=wpa&uin='+config.enterprise.QQ+'&version=1&src_type=web&web_src=oicqzone.com'
    })

})();
